<?php
/**
 * NOTICE OF LICENSE
 *
 * THIS SOURCE FILE IS PART OF EVEBIT'S PRIVATE PROJECT.
 * 
 * DO NOT USE THIS FILE IN OTHER PLACE.
 *
 * @category  Poll_Parrots
 * @package   Frontend
 * @author	  cuicui <cui.yuhui@evebit.com>
 * @version   $$Id: 3colnums.phtml 2197 2011-02-22 08:43:55Z chang.zhenhua $$
 * @copyright Copyright (c) 2008 Evebit Inc. China (http://www.evebit.com)
 */

?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="<?php echo $locale?>">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Business Bling</title>
	<link href="<?php echo $this->baseUrl("/media/images/favicon.ico") ?>" rel="icon">
	<link href="<?php echo $this->baseUrl("/media/css/main.css")?>" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl("/media/css/superfish.css")?>" media="screen" />
	<link href="<?php echo $this->baseUrl("/media/css/nivo-slider.css")?>" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="<?php echo $this->baseUrl("/media/css/prettyPhoto.css")?>" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
	<link rel="stylesheet" href="<?php echo $this->baseUrl("/application/modules/blocks/frontend-views/scripts/navigation/megamenu.css")?>" type="text/css"/>
	<link rel="stylesheet" href="<?php echo $this->baseUrl("/media/css/bbling.css")?>" type="text/css"/>
	<link rel="stylesheet" href="<?php echo $this->baseUrl("/media/chosen/chosen.css")?>" type="text/css" />
	<link rel="stylesheet" href="<?php echo $this->baseUrl("/media/css/ticker-style.css")?>" type="text/css"/>
	<link rel="stylesheet" href="<?php echo $this->baseUrl("/media/css/style.css")?>" type="text/css"/>
	<link rel="stylesheet" href="<?php echo $this->baseUrl("/media/css/validationEngine.jquery.css")?>" type="text/css"/>

	<!-- *************************************************************************
**************************   JSCRIPTS    *******************************
************************************************************************** -->

	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

	<!-- news tricker -->
	<!-- <script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/jquery.newsTicker-2.3.6.js")?>"> </script>-->
	<script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/jquery.ticker.js")?>">
	<script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/jsHelper.js")?>"> </script>
	<script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/jcarousellite.min.js")?>"> </script>
	<script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/hoverIntent.js")?>"></script>
	<script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/superfish.js")?>"></script>
	<script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/supersubs.js")?>"></script>
	<script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/custom.js")?>"> </script>
	<script src="<?php echo $this->baseUrl("/media/js/jquery.prettyPhoto.js")?>" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo $this->baseUrl("/media/js/tabs.js")?>" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/scrolltopcontrol.js")?>"> </script>
	<script src="<?php echo $this->baseUrl("/media/js/jquery.nivo.slider.pack.js")?>" type="text/javascript"></script>
	<script src="<?php echo $this->baseUrl("/media/chosen/chosen.jquery.js")?>" type="text/javascript"></script>
	<script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/jquery.validationEngine-en.js")?>"></script>
	<script type="text/javascript" src="<?php echo $this->baseUrl("/media/js/jquery.validationEngine.js")?>"></script>
    <script type='text/javascript' src='http://localhost/wordpress/wp-content/plugins/contact-form-7/jquery.form.js?ver=2.52'></script>
    <script type='text/javascript' src='http://localhost/wordpress/wp-content/plugins/contact-form-7/scripts.js?ver=2.4.6'></script>
	<script type="text/javascript"> 
    $(document).ready(function(){ 
        $("ul.sf-menu").supersubs({ 
            minWidth:    12,   // minimum width of sub-menus in em units 
            maxWidth:    45,   // maximum width of sub-menus in em units 
            extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
        }).superfish();  // call supersubs first, then superfish, so that subs are 
                         // not display:none when measuring. Call before initialising 
                         // containing tabs for same reason. 
    }); 
    </script>

	<!-- START OF SCRIPT FOR MENU -->
	<script type="text/javascript">  
     jQuery(document).ready(function() { 
        jQuery('ul.sf-menu').superfish({ 
            delay:       1000,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'normal',                          // faster animation speed 
            autoArrows:  true,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        }); 
    }); 
    </script>

	<!-- END OF SCRIPT FOR MENU -->

	<script type="text/javascript">
	$(window).load(function() {
		$('#slider').nivoSlider({
			effect:'fold',
			slices:1,
			animSpeed:1800,
			pauseTime:6000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next and Prev
			directionNavHide:false, //Only show on hover
			controlNav:true, //1,2,3...
			controlNavThumbs:true, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:true,
			controlNavThumbsSearch: '.jpg', //Replace this with...
			controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
			keyboardNav:true, //Use left and right arrows
			pauseOnHover:true, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0.8, //Universal caption opacity
			beforeChange: function(){},
			afterChange: function(){},
			slideshowEnd: function(){} //Triggers after all slides have been shown
	
		});
	});
	</script>
	<script type="text/javascript"> 
	jQuery(document).ready(function() {
		jQuery("#news_div").jCarouselLite({
			vertical: true,
			auto: 800,
			speed: 2500,
			visible: 1
		});
	});
	</script>

	<!-- *************************************************************************
*********************  THIS IS THE CONTACT FORM JS  **************************
************************************************************************** -->

	<script type='text/javascript'>
	$(document).ready(function(){
		var active_color = '#929191'; // Colour of user provided text
		var inactive_color = '#929191'; // Colour of default text
		$("input.default-value").css("color", inactive_color);
		var default_values = new Array();
		$("input.default-value").focus(function() {
		  if (!default_values[this.id]) {
			default_values[this.id] = this.value;
		  }
		  if (this.value == default_values[this.id]) {
			this.value = '';
			this.style.color = active_color;
		  }
		  $(this).blur(function() {
			if (this.value == '') {
			  this.style.color = inactive_color;
			  this.value = default_values[this.id];
			}
		  });
		});

		$('#contactform').submit(function(){
	
		formvalues = $("#contactform").serialize();
	
		$.ajax({
			type: "POST",
			url: "mailer.php",
			data: formvalues,
			dataType: "json",
			success: function(data) {
				if (data.success==1) {
					$("#contactwrapper").slideUp(750,function() {
						$('#contactmessage').html('Thanks! Please check your email to confirm your subscription.');
						});
				}
				else{
					if (data.invalid_email==1) { $('#contact_email').addClass("form_error"); }
						else { $('#contact_email').removeClass("form_error"); }
						
			   }
		}
		});
			return false; 
		});
	
	});
	</script>
	</head>
	<?php $entity = new Bbling_Model_Entity_News(); $this->newsList = $entity->getAllNews();?>
	<body id="home">
    <div id="bodymain"> 
      <!-- START OF WRAPPER -->
      <div id="wrapper"> 
        <!-- START OF TOP_HEADER -->
        <div id="top_header"> 
          <!-- START OF TOP_LOGO -->
          <div id="top_logo"> <a href="<?php $configEntity = new Default_Model_Entity_Config ();
		echo $configEntity->getCodeValue ( 'wp_base_url' );?>" target="_self"><img src="<?php echo $this->baseUrl('/media/img/top_logo2.png')?>"  alt="top logo" /></a> </div>
          <!-- END OF TOP_LOGO -->
          <div class="top_header_button" style="width:190px; margin-right:10px; margin-top:24px;">
            <?php if ($this->user && $this->user->select_role!='Investor'):?>
            <!-- START OF SEARCHBOX -->
            <div id="searchbox">
              <ul class="search">
                <li>
                  <input type="text" value="Search" id="searchBox" name="s" onBlur="if(this.value == '') { this.value = 'Search'; }" onFocus="if(this.value == 'Search') { this.value = ''; }" class="bar" />
                </li>
                <li>
                  <input type="image" src="<?php echo $this->baseUrl('/media/')?>img/go_transparent.png" alt="" class="go" />
                </li>
              </ul>
            </div>
            <!-- END OF SEARCHBOX -->
            <?php endif;?>
          </div>
          <div class="top_header_button" style="display:none;"><a href="##">Hi, <?php echo $this->user->username.' , '.$this->user->select_role ?></a>|<a href="<?php if(isset($this->data['id']))echo $this->baseUrl('/bbling/index/entrepreneur-profile-view/id/'.$this->data['id'])?>">Next Page</a>|</div>
          <?php include "application/modules/blocks/frontend-views/scripts/navbutton.phtml";?>
          
          <!-- START OF MENU_WRAPPER -->
          <div id="top-navigation">
            <?php include "application/modules/blocks/frontend-views/scripts/navigation/final-navigation.phtml";?>
          </div>
          <!-- END OF MENU_WRAPPER -->
          <div id="message_content-wrapper" class="message_content-wrapper"> <?php echo $this->partial("messages.phtml","blocks") ?> </div>
          <?php echo $this->layout()->content ?> </div>
        <!-- START OF TOP_HEADER --> 
      </div>
      <!-- START OF FOOTER_WRAPPER -->
      <div id="footer_wrapper"> 
       <?php include "application/modules/blocks/frontend-views/scripts/ajax-footer.phtml";?>
      </div>
      <!-- END OF BOTTOM_FOOTER_WRAPPER --> 
    </div>
</body>
</html>